package com.lv.dhart.beans;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class RiskBeans implements Serializable {

    private static final long serialVersionUID = -3100762448980868122L;


    /**
     * code : 0
     * msg : success
     * offset : 0
     * data : [{"id":5307,"stock_code":"300799","stock_name":"*ST左江","hold_focus":"非常集中","ave_price":256.3,"holder_total_num":2803,"freehold_ratio_total":57.67,"tc_count":3,"jj_count":1,"danger_type":"财务退市风险"},{"id":4569,"stock_code":"688021","stock_name":"奥福环保","hold_focus":"非常集中","ave_price":25.1,"holder_total_num":3888,"freehold_ratio_total":51.51,"tc_count":2,"jj_count":0,"danger_type":"市值风险"}]
     * count : 451
     */

    @SerializedName("code")
    private Integer code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("offset")
    private Integer offset;
    @SerializedName("count")
    private Integer count;
    @SerializedName("data")
    private List<DataDTO> data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        /**
         * id : 5307
         * stock_code : 300799
         * stock_name : *ST左江
         * hold_focus : 非常集中
         * ave_price : 256.3
         * holder_total_num : 2803
         * freehold_ratio_total : 57.67
         * tc_count : 3
         * jj_count : 1
         * danger_type : 财务退市风险
         */

        @SerializedName("id")
        private Integer id;
        @SerializedName("stock_code")
        private String stockCode;
        @SerializedName("stock_name")
        private String stockName;
        @SerializedName("hold_focus")
        private String holdFocus;
        @SerializedName("ave_price")
        private Double avePrice;
        @SerializedName("holder_total_num")
        private Integer holderTotalNum;
        @SerializedName("freehold_ratio_total")
        private Double freeholdRatioTotal;
        @SerializedName("tc_count")
        private Integer tcCount;
        @SerializedName("jj_count")
        private Integer jjCount;
        @SerializedName("danger_type")
        private String dangerType;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getStockCode() {
            return stockCode;
        }

        public void setStockCode(String stockCode) {
            this.stockCode = stockCode;
        }

        public String getStockName() {
            return stockName;
        }

        public void setStockName(String stockName) {
            this.stockName = stockName;
        }

        public String getHoldFocus() {
            return holdFocus;
        }

        public void setHoldFocus(String holdFocus) {
            this.holdFocus = holdFocus;
        }

        public Double getAvePrice() {
            return avePrice;
        }

        public void setAvePrice(Double avePrice) {
            this.avePrice = avePrice;
        }

        public Integer getHolderTotalNum() {
            return holderTotalNum;
        }

        public void setHolderTotalNum(Integer holderTotalNum) {
            this.holderTotalNum = holderTotalNum;
        }

        public Double getFreeholdRatioTotal() {
            return freeholdRatioTotal;
        }

        public void setFreeholdRatioTotal(Double freeholdRatioTotal) {
            this.freeholdRatioTotal = freeholdRatioTotal;
        }

        public Integer getTcCount() {
            return tcCount;
        }

        public void setTcCount(Integer tcCount) {
            this.tcCount = tcCount;
        }

        public Integer getJjCount() {
            return jjCount;
        }

        public void setJjCount(Integer jjCount) {
            this.jjCount = jjCount;
        }

        public String getDangerType() {
            return dangerType;
        }

        public void setDangerType(String dangerType) {
            this.dangerType = dangerType;
        }
    }
}
